# CFLAG= -std=c++11 -I /home/wgm/project/json-rpc/demo/build/release-install-cpp11/include/
# LFLAG= -L /home/wgm/project/json-rpc/demo/build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -pthread
# server:server.cpp
# 	g++ $(CFLAG) $^ -o $@ $(LFLAG)

CFLAG= -std=c++11 -I /home/wgm/project/json-rpc/demo/build/release-install-cpp11/include
LFLAG= -L /home/wgm/project/json-rpc/demo/build/release-install-cpp11/lib  -lmuduo_net -lmuduo_base -pthread
.PHONY:all
all:server client
server: server.cpp
	g++  $(CFLAG) $^ -o $@ $(LFLAG)
client: client.cpp
	g++ $(CFLAG) $^ -o $@ $(LFLAG)

.PHONY:clean
clean:
	rm -f server client